package com.wangzhixuan.db.dao;

import com.wangzhixuan.db.bean.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Customer data access
 *
 * @author victor
 */
@Repository
public interface OrderDao {
  
  public Order getOrderById(@Param("orderId") long orderId);
  
  public List<Order> getOrdersByCustomer(@Param("customerId") long customerId);

  public long addOrder(Order order);

  public int  updateOrderStatus(@Param("orderId")long orderId,@Param("status") int status);

}
